#ifndef __SOCKETIO_H
#define __SOCKETIO_H
#include "logger.h"
namespace moqi
{
class SocketIO
{
public:
    SocketIO(int fd);
    int recvn(char * buff, int len);
    int sendn(const char * buff, int len)const;
    int recvLine(char * buff, int len);
    int recvPeek(char *buff,int len)const;
private:
    int _fd;
};

}


#endif

